package org.jeecg.modules.zhima.center.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import org.jeecg.modules.zhima.center.entity.CmsSubject;
import org.jeecg.modules.zhima.center.mapper.CmsSubjectMapper;
import org.jeecg.modules.zhima.center.service.ICmsSubjectService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: cms_subject
 * @Author: jeecg-boot
 * @Date:   2020-08-27
 * @Version: V1.0
 */

@Service
public class CmsSubjectServiceImpl extends ServiceImpl<CmsSubjectMapper, CmsSubject> implements ICmsSubjectService {

    @Override
    public List<CmsSubject> getByIds(List<Integer> ids) {
        return list(new LambdaQueryWrapper<CmsSubject>()
                .eq(CmsSubject::getShowStatus, 1)
                .in(CmsSubject::getId, ids)
        );
    }
}
